#include "ROTriggeredUpdater.h"
#include "ROSyncProperty.h"
ROTriggeredUpdater::ROTriggeredUpdater(QObject *parent):ROPropertyUpdater(parent)
{

}

QObject *ROTriggeredUpdater::registerUpdater(ROSyncProperty *source)
{
    QObject* reg = new QObject();
    connect(source,&ROSyncProperty::propertyChanged,reg,[=](QString prop){
        updateProperty(source,{prop});
    });

    return reg;
}
